package com.gxa.ssm251.mapper;

import com.gxa.ssm251.pojo.Coupon;

import java.util.List;

public interface CouponMapper {

    public Coupon selectById(Integer id);

    public List<Coupon> selectByOthers(Coupon coupon);
    List<Coupon> selectByLikeName(String name) ;
    Coupon selectByName(String name);
    List<Coupon> selectAll();
    List<Coupon> selectByPage(int page,int size) ;
    Integer insert(Coupon user);
    Integer deleteById(Integer id);
    Integer update(Integer id,Coupon user);
    Integer selectAllGetCount(Class<Coupon> clazz) ;
    List<Coupon> overExpire(String phone) ;
    List<Coupon> userGetCpnList(String phone);
    List<Coupon> userNotGetCpnList(String phone);
}
